package com.budwk.app.sqfwV2.component;

import com.budwk.app.sqfw.models.Sqfw_formSummary_new;
import com.budwk.app.sqfw.services.SqfwFormsummaryNewService;
import com.budwk.app.sqfwDoc.dto.TemplateCodeUpdateDTO;
import com.budwk.app.sys.models.Sys_user;
import com.budwk.app.sys.services.SysUserService;
import com.budwk.app.util.StrUtil;
import com.budwk.app.util.poiUtils.nutzBeanUtils.NutzIocUtils;
import com.budwk.starter.security.utils.SecurityUtil;
import lombok.extern.slf4j.Slf4j;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import java.util.Date;

/**
 * 问题反馈
 */

@IocBean
@Slf4j
public class ProblemFeedbackComponent {

    @Inject
    private SqfwFormsummaryNewService formsummaryNewService;
    @Inject
    private SysUserService userService;

    public void submit(TemplateCodeUpdateDTO dto) {
        Sqfw_formSummary_new formSummary = dto.getFormSummary();
        Sys_user user = userService.fetch(SecurityUtil.getUserId());
//        formSummary.setSqfwId(StrUtil.getUUID()).setUnitId(user.getUnitId()).setUnitName(user.getUnitName()).setCreateBy(user.getId()).setCreateDate(new Date()).setcrea


    }
}
